package com.barkerton.crawler.queuing;

import java.net.URL;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.barkerton.crawler.Crawler;
import com.barkerton.crawler.Seed;

public class QueueManager {
	
	private Log log = LogFactory.getLog(QueueManager.class);
	
	/*
	 * Simple sanity "smoke" test
	 */
	public static void main(String[] args) throws Exception {
		Crawler c = new Crawler();
		URL url = new URL("http://www.utexas.edu");
		Seed s = new Seed(url);
		
		CrawlerQueue cQueue = CrawlerQueue.getInstance();
		cQueue.enqueue(s);
		
		Thread t = new Thread(c);
		t.start();
	}

}
